/*
 * FrameRespuestaPregunta1.java
 *
 * Created on 23 de mayo de 2009, 19:30
 */

package GUI;

import javax.swing.JFrame;

/**
 *
 * @author  David
 */
public class FrameRespuestaPregunta1 extends javax.swing.JFrame {
    
    private String salario;
    private String jornada;
    private String empresa;
    private JFrame framePrincipal;
            
    /** Creates new form FrameRespuestaPregunta1 */
    public FrameRespuestaPregunta1(String salario,String jornada,String empresa,JFrame principal) {
        this.salario=salario;
        this.jornada=jornada;
        this.empresa=empresa;
        this.framePrincipal=principal;
        initComponents();
        this.jTextField_Salario.setText(this.salario);
        this.jTextField_Jornada.setText(this.jornada);
        this.jTextField_Empresa.setText(this.empresa);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel_Cabecera = new javax.swing.JLabel();
        jLabel_Salario = new javax.swing.JLabel();
        jTextField_Salario = new javax.swing.JTextField();
        jLabel_Jornada = new javax.swing.JLabel();
        jTextField_Jornada = new javax.swing.JTextField();
        jLabel_Empresa = new javax.swing.JLabel();
        jTextField_Empresa = new javax.swing.JTextField();
        jButton_Inicio = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jLabel_Cabecera.setText("A partir de los datos introducidos, usted debería buscar un empleo con:");

        jLabel_Salario.setText("Salario");

        jTextField_Salario.setEditable(false);
        jTextField_Salario.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        jLabel_Jornada.setText("Jornada Laboral");

        jTextField_Jornada.setEditable(false);
        jTextField_Jornada.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        jLabel_Empresa.setText("Tipo de empresa");

        jTextField_Empresa.setEditable(false);
        jTextField_Empresa.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        jButton_Inicio.setText("Inicio");
        jButton_Inicio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_InicioActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel_Empresa)
                        .addContainerGap())
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel_Cabecera)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel_Jornada)
                                    .addComponent(jLabel_Salario))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextField_Salario, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(jTextField_Jornada, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)
                                        .addComponent(jButton_Inicio, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jTextField_Empresa)))))
                        .addContainerGap(33, Short.MAX_VALUE))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jLabel_Cabecera)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_Salario)
                    .addComponent(jTextField_Salario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_Jornada)
                    .addComponent(jTextField_Jornada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_Empresa)
                    .addComponent(jTextField_Empresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(54, 54, 54)
                .addComponent(jButton_Inicio)
                .addContainerGap(59, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jButton_InicioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_InicioActionPerformed
    this.setVisible(false);     
    this.framePrincipal.setVisible(true);
}//GEN-LAST:event_jButton_InicioActionPerformed

    /**
    * @param args the command line arguments
    */
  

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_Inicio;
    private javax.swing.JLabel jLabel_Cabecera;
    private javax.swing.JLabel jLabel_Empresa;
    private javax.swing.JLabel jLabel_Jornada;
    private javax.swing.JLabel jLabel_Salario;
    private javax.swing.JTextField jTextField_Empresa;
    private javax.swing.JTextField jTextField_Jornada;
    private javax.swing.JTextField jTextField_Salario;
    // End of variables declaration//GEN-END:variables

}
